package com.ss.android.article.base.feature.feed.presenter;

import com.ss.android.article.base.feature.model.CellRef;

import java.util.ArrayList;
import java.util.List;

public final class ListData {
    public List<CellRef> a;
    public int b;
    public boolean c;
    public boolean d;
    public boolean e;
    public int f;
    public long g;
    public long h;
    public long i;
    private int j;
    private int k;

    public ListData(ListData arg3) {

        this.i = -1;
        this.a(arg3);
    }

    public ListData() {
        this(null);
    }

    public final void a(boolean arg4) {
        int v2 = 2;
        if(arg4) {
            if(this.f == 1) {
                this.f = v2;
            }
        }
        else if(this.f == 0) {
            this.f = v2;
        }
    }

    public final void a() {
        long v4 = 0;
        if(this.a == null) {
            this.a = new ArrayList();
        }

        this.a.clear();
        this.b = 0;
        this.c = true;
        this.d = true;
        this.e = false;
        this.f = 0;
        this.g = v4;
        this.h = v4;
        this.j = 0;
        this.k = 0;
    }

    public final void a(ListData arg7) {
        long v4 = 0;
        if(arg7 != this) {
            if(this.a == null) {
                this.a = new ArrayList();
            }

            if(arg7 != null) {
                if(arg7.a != this.a) {
                    this.a.clear();
                    if(arg7.a != null) {
                        this.a.addAll(arg7.a);
                    }
                }

                this.b = arg7.b;
                this.c = arg7.c;
                this.d = arg7.d;
                this.e = arg7.e;
                this.f = arg7.f;
                this.g = arg7.g;
                this.h = arg7.h;
                this.j = arg7.j;
                this.k = arg7.k;
                this.i = arg7.i;
                return;
            }

            this.a.clear();
            this.b = 0;
            this.c = true;
            this.d = true;
            this.e = false;
            this.f = 0;
            this.g = v4;
            this.h = v4;
            this.j = 0;
            this.k = 0;
            this.i = -1;
        }
    }
}

